/**
 * @Description: 配置信息
 * @author longfa liang
 * @date 2021/7/13
 */

module.exports = {
    port: 3000,
    /*mongodb 配置*/
    mongo: {
        table: 'server',
        url: 'mongodb://root:liangl00.@192.168.3.241:27017/server',
        table_proccess: 'proccess',
        url_proccess: 'mongodb://root:liangl00.@192.168.3.241:27017/proccess',
        table_temp: 'temp',
        url_temp: 'mongodb://root:liangl00.@192.168.3.241:27017/temp',
        table_flow: 'flow',
        url_flow: 'mongodb://root:liangl00.@192.168.3.241:27017/flow'
    },
    wx: {
        appid: 'wx26a731d9a4dc73b8',
        appsecret: '8c362b70e36a16e2e0b4cb4b94cde5c5'
    },
    redis: {
        host: '192.168.3.241',
        port: 6379,
        pwd: 'liangl00.'
    },
    /*启动的服务模块 每个模块文件名*/
    startServer: ['users', 'index', 'team', 'temp', 'play', 'jur', 'role', 'template', 'process','map','flow'],
    /*七牛云*/
    qiniu: {
        accessKey: '1PzQEdvYIjE_uX1iWILbNOlIoJOxm4zJVXXpL9hj',
        secretKey: 'nkj-wH393QRJNLl8zrxas-AY7ryBjLT1-YV5QyCT',
        domain: 'niushifu.zhxuidc.com'

    },
    map: {
        key: '4c1b560dc7cc8c909cbf0413fc104535',
        url:'https://restapi.amap.com/v5/',
        ipKey:'954c1531afd51170918cf155bd54cd7b'
    },
    // 压缩配置
    compressConfig: {
        compress: false,
    },
    /*模块对应服务器*/
    startserverurl: {
        'users': '101.34.116.144:3000', //用户 在未加入团队情况下
        'index': '101.34.116.144:3000', //系统相关  如配置信息
        'team': '101.34.116.144:3000',   //团队
        'play': '101.34.116.144:3000',   //购买系统
        'jur': '101.34.116.144:3000',    //权限
        'role': '101.34.116.144:3000',   //角色
        'template': '101.34.116.144:3000',//模板
        'process': '101.34.116.144:3000', //流程
        'map': '101.34.116.144:3000', //流程
    },
    /*腾讯短信*/
    sms: {
        appkey: 'fa1f49ce559a39f558028d9a943f6432',
        appid: 1400298859,
        smsSign: '零点智轩'
    },
    /*接口白名单 跳过token验证*/
    Whitelist: [
        ['index', '*'],
        /*短信登录*/
        ['users', 'smscode_login'],
        /*密码登录*/
        ['users', 'pwd_login'],
        /*找回密码*/
        ['users', 'find_pwd'],
        /*微信登录*/
        ['users', 'wechat_login'],
        /*获取OPENID*/
        ['users', 'getUserOpenId']
    ],
    /*权限白名单 跳过权限验证*/
    jurlist: [
        ['index', '*'],
        ['users', '*'],
        /*提交支付订单*/
        ['play', '*'],
        ['process', 'find_agency'],
        /*查询用户信息*/
        ['team', 'find_userinfo'],
        /*查询当前组织权限*/
        ['jur', 'get_team_jur_module'],
        /*查询权限模块*/
        ['jur', 'get_jur_module'],
        ['team', 'agree_join'],
        ['team', 'find_team_info'],
    ],
    /*服务器白名单 跳过token 权限验证*/
    serverWhite: [
        '127.0.0.1:3000'
    ],
    /*AES加密密码*/
    aeskey: {
        key: '0123456789abcdef',
        iv: '0123456789abcdef',
        padding: 'PKCS7Padding'
    },
    cos: {
        SecretId: 'AKIDD6lDVZnREwJRM2Pdol8Kr5AyXsypk2Oo',
        SecretKey: 'b9xthlgRFp33qLgnoUv0qRrLaaKo33rQ'
    }
    , test: {
        /*测试时长*/
        testTime: '31d24540054c11ecb2b6038986350659',
        testversion: '36a9bdf0054c11ecb2b6038986350659',
        testPople: '33b005f0054c11ecb2b6038986350659'
    }
}
